package com.cuotigou.mapper;

import com.cuotigou.pojo.SSubject;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public interface SSubjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SSubject record);

    int insertSelective(SSubject record);

    SSubject selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SSubject record);

    int updateByPrimaryKey(SSubject record);
    //查询科目id
    Integer selectSubjectId(Map<String,Object> map);
    //根据年级id查询所有科目
    LinkedList<SSubject> selectSubjectListByGradeId(Integer gradeId);
    //根据userid查询所有科目
    List<SSubject> selectSubjectListByUserId(String userId);
    //查询所有科目
    LinkedList<SSubject> selectSubjectAll();
}